/**
 * Created with Intellij IDEA.
 * Description:
 * User:Lenovo
 * Date:2024-12-06
 * Time:12:26
 */
public class Text {
    public static void main(String[] args) {
        String a = "abcdefabfcde";
        System.out.println(a.lastIndexOf("def"));
    }
}

